package testservice;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.List;

public class TestService extends BaseTest{

    @Autowired
    private com.pachong.service.TestService testService;

    @Test
    public void testTestService(){
        Long a1 = System.currentTimeMillis();
        int i=0;
        while (i<100000){
            com.domain.bean.music.Test record = new com.domain.bean.music.Test();
            record.setCode(i+"zaaaaaaa");
            record.setName("wangyu1111"+i);
            testService.save(record);
            i++;
        }
        Long a2 = System.currentTimeMillis();

        System.err.println((a2-a1)/1000);
        System.err.println("执行结束");
    }
}
